package com.richpencil.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2020/4/26.
 */
public class ResultUtil {

    /**
     * 返回数据
     * @param object
     * @return
     */
    public static Object resultJson(Object object, Integer state){
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("code", state);
        map.put("data", object);

        return map;
    }
}
